#include <iostream>
using namespace std;

class Cat {
public:
	Cat() {
		HowManyCats++;
	}

	~Cat() {
		HowManyCats--;
	}

	static int GetHowMany() {
		return HowManyCats;
	}

private:
	static int HowManyCats;
};

int Cat::HowManyCats = 0;

//int main() {
//	Cat *c1 = new Cat;
//	Cat *c2 = new Cat;
//	Cat *c3 = new Cat;
//	cout << Cat::GetHowMany() << endl;
//	delete c1;
//	delete c2;
//	delete c3;
//	cout << Cat::GetHowMany() << endl;
//	return 0;
//}